﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:Didsoft_Silverlight_Controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls" 
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="Didsoft.SalesLive.UI.Views.VwUsuarios"
           mc:Ignorable="d"
           d:DesignWidth="618" d:DesignHeight="431"
           Title="VwUsuarios Page">
	<Grid x:Name="LayoutRoot">
		<Didsoft_Silverlight_Controls:FormHeader Margin="0,0,0,0" TitleText="Gestionar Usuarios" DescriptionText="Gestiona Usuarios CRUD">
			<Grid>
				<TextBlock HorizontalAlignment="Left" Height="18" Margin="8,10,0,0" TextWrapping="Wrap" Text="Persona :" VerticalAlignment="Top" Width="96"/>
				<TextBlock HorizontalAlignment="Left" Height="18" Margin="8,35,0,0" TextWrapping="Wrap" Text="Rol :" VerticalAlignment="Top" Width="96"/>
				<TextBlock HorizontalAlignment="Left" Height="18" Margin="8,70,0,0" TextWrapping="Wrap" Text="Usuario :" VerticalAlignment="Top" Width="96"/>
				<TextBlock HorizontalAlignment="Left" Height="18" Margin="8,96,0,0" TextWrapping="Wrap" Text="Contraseña :" VerticalAlignment="Top" Width="96"/>
				<TextBlock HorizontalAlignment="Left" Height="18" Margin="8,125,0,0" TextWrapping="Wrap" Text="Pista Contraseña :" VerticalAlignment="Top" Width="113"/>
				<ComboBox Height="25" Margin="133,6,329,0" VerticalAlignment="Top" ItemsSource="{Binding Personas, Mode=TwoWay}" SelectedItem="{Binding Usuario.Persona, Mode=TwoWay}"/>
				<ComboBox Height="24" Margin="133,35,329,0" VerticalAlignment="Top" ItemsSource="{Binding Roles, Mode=TwoWay}" SelectedItem="{Binding Usuario.Rol, Mode=TwoWay}"/>
				<TextBox Height="25" Margin="133,63,235,0" TextWrapping="Wrap" Text="{Binding Usuario.NombreUsuario, Mode=TwoWay}" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment"/>
				<PasswordBox Height="25" Margin="133,92,235,0" VerticalAlignment="Top" Password="{Binding Usuario.Contrasena, Mode=TwoWay}"/>
				<TextBox Height="25" Margin="133,121,235,0" TextWrapping="Wrap" Text="{Binding Usuario.PistaContrasena, Mode=TwoWay}" VerticalAlignment="Top"/>
    	  		  
				<sdk:DataGrid Margin="11,189,16,28" AutoGenerateColumns="True" ItemsSource="{Binding Usuarios, Mode=TwoWay}" SelectedItem="{Binding Usuario, Mode=TwoWay}"/>
				<Button Content="Nuevo" HorizontalAlignment="Left" Height="28" Margin="20,157,0,0" VerticalAlignment="Top" Width="101" Command="{Binding CmdNuevo, Mode=TwoWay}"/>
				<Button Content="Guardar" HorizontalAlignment="Left" Height="28" Margin="133,157,0,0" VerticalAlignment="Top" Width="101" Command="{Binding CmdGuardar, Mode=TwoWay}"/>
				<Button Content="Eliminar" Height="28" Margin="249,157,0,0" VerticalAlignment="Top" Command="{Binding CmdEliminar, Mode=TwoWay}" HorizontalAlignment="Left" Width="101"/>
    	  		  
			</Grid>	
		</Didsoft_Silverlight_Controls:FormHeader>
    	
	</Grid>
</navigation:Page>
